[XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 27 Sep 2006 13:30:36 +0000 (14:30 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 27 Sep 2006 13:30:36 +0000 (14:30 +0100)
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/xm-test/tests/vtpm/vtpm_utils.py

index 01a60f90c64ad5d1c006af1b54eab8824ad54fc4..0af46574c9372a877b9252113ed6dc3750c53ed7 100644 (file)
@@ -8,12 +8,10 @@ from XmTestLib import *
 if ENABLE_HVM_SUPPORT:
     SKIP("vtpm tests not supported for HVM domains")
 
-if not os.path.exists("/dev/tpm0"):
-    SKIP("This machine has no hardware TPM; cannot run this test")
-
 status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep")
 if output == "":
-    FAIL("virtual TPM manager must be started to run this test")
+    SKIP("virtual TPM manager must be started to run this test; might "
+         "need /dev/tpm0")
 
 def vtpm_cleanup(domName):
     traceCommand("/etc/xen/scripts/vtpm-delete %s" % domName)